package com.dksidana.java.jdbc;

import java.sql.Connection;
import java.sql.SQLException;

import com.dksidana.java.jdbc.core.QueryRunner;
import com.dksidana.java.jdbc.core.ResultSetHandler;

public class ConnectionWrapper implements QueryRunner{
	private final Connection connection;
	public ConnectionWrapper(Connection connection) {
		this.connection=connection;
	}
	public <T> T executeQuery(String query, ResultSetHandler<T> rsh)
			throws SQLException {
		return JDBCUtils.executeQuery(connection, query, rsh);
	}
}
